import ToolActionApi from "@/tool/http/tool-action.js";

let appInfoAction = ToolActionApi.init("function_app_info");

let dictAppInfo = [];

const rule = {
  queryParams: [],
  pageConfig: {},
  metadata: [
    {
      name: "app_info_id",
      dictListFun: () => dictAppInfo,
    },
  ],
  baseField: [
    {
      name: "id",
    },
  ],
};

export default async function (metadata) {
  dictAppInfo = await appInfoAction.dict();
  return rule;
}
